]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Rename _updateMenuVisibility to _updateMenu
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 17 Feb 2014 01:20:28 +0000 (01:20 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 17 Feb 2014 12:08:40 +0000 (12:08 +0000)
We'll soon be doing more than just toggling the accuracy of menu itself
in this function. Hence the renaming.

https://bugzilla.gnome.org/show_bug.cgi?id=723684

js/ui/status/location.js

index d7243c13c286314f6b552a76edef2539a739f1e0..5661b57ce82ce788af740059f6c96eb351889220 100644 (file)
@@ -122,7 +122,7 @@ const Indicator = new Lang.Class({
         this._propertiesChangedId = this._proxy.connect('g-properties-changed',
                                                         Lang.bind(this, this._onGeocluePropsChanged));
 
-        this._updateMenuVisibility();
+        this._updateMenu();
         this._syncIndicator();
 
         this._proxy.AddAgentRemote('gnome-shell', Lang.bind(this, this._onAgentRegistered));
@@ -177,7 +177,7 @@ const Indicator = new Lang.Class({
         this._agent.emit_property_changed('MaxAccuracyLevel', variant);
     },
 
-    _updateMenuVisibility: function() {
+    _updateMenu: function() {
         this._availableAccuracyLevel = this._proxy.AvailableAccuracyLevel;
         this.menu.actor.visible = (this._availableAccuracyLevel != 0);
     },
@@ -187,7 +187,7 @@ const Indicator = new Lang.Class({
         if ("InUse" in unpacked)
             this._syncIndicator();
         if ("AvailableAccuracyLevel" in unpacked)
-            this._updateMenuVisibility();
+            this._updateMenu();
     }
 });